class CreateEshopBillingMethods < ActiveRecord::Migration
  def change
    create_table :eshop_billing_methods, :force => true do |t|
      t.string  :presentation, :limit => 30, :null => false
      t.string  :name,        :limit => 30,  :null => false
      t.text    :description,                :null => true
      t.decimal :price,  :precision => 6, :scale => 2, :default => "0.0", :null => true
      t.boolean :hidden,       :default => true
      t.integer :position, :limit => 2
    end
  end
end